<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<header>
    <div class="header-top">
        <div class="width-center">
            <div class="header-logo " ><img src="${company.logo }" alt=""></div>
            <div class="header-title div-inline">
                <strong>${company.name }</strong>
                <span>${company.url }</span>
            </div>

            <form action="ProductServlet?req=productSelect&id=0" method="post" class="search-box div-inline">
                <input class="input-box" type="text" name="name" placeholder="             请输入关键字">
                <button class="search-botton" type="submit"></button>
            </form>
        </div>
    </div>
    <div class="header-nav">
        <button class="am-show-sm-only am-collapsed font f-btn" data-am-collapse="{target: '.header-nav'}">Menu <i
                class="am-icon-bars"></i></button>
        <nav>
        <ul class="header-nav-ul am-collapse am-in">
            <li class="on"><a href="HomeServlet?req=homeSelect" name="index">首页</a></li>
            <li><a href="companyServlet?req=companySelect" name="about">关于我们</a></li>
            <li><a href="ProductServlet?req=productSelect&id=0" name="show">产品展示</a></li>
            <li><a href="NewsServlet?req=newsSelect&id=0" name="new">新闻资讯</a></li>
            <li><a href="contact.jsp" name="message">联系我们</a>
                <div class="secondary-menu">

                    <ul><li><a href="message.jsp" class="message"></a></li></ul>
                </div>
            </li>
            <li><a href="http://localhost:8080/Dream/admin/admin.jsp" name="admin">后台管理</a></li>
        </ul> 



        </nav>
    </div>
<div class="am-slider am-slider-default" data-am-flexslider="{playAfterPaused: 8000}">
    <ul class="am-slides">
    <c:choose>
   		<c:when test="${empty banner }"></c:when>
	    <c:otherwise>
	    	<c:forEach items="${banner }" var="banner">
	        <li><img src="${banner.bannerImg }" alt="bannerTiele" ></li>
	        </c:forEach>
        </c:otherwise>
    </c:choose>
    </ul>
</div>
</header>
</body>
</html>